package router

import (
	"gin-vue-admin/api/v1"
	"gin-vue-admin/middleware"
	"github.com/gin-gonic/gin"
)

func InitInWarehouseInfoRouter(Router *gin.RouterGroup) {
	InWarehouseInfoRouter := Router.Group("InWarehouse").Use(middleware.JWTAuth()).Use(middleware.CasbinHandler()).Use(middleware.OperationRecord())
	{
		InWarehouseInfoRouter.POST("createInWarehouseInfo", v1.CreateInWarehouseInfo)   // 新建InWarehouseInfo
		InWarehouseInfoRouter.DELETE("deleteInWarehouseInfo", v1.DeleteInWarehouseInfo) // 删除InWarehouseInfo
		InWarehouseInfoRouter.DELETE("deleteInWarehouseInfoByIds", v1.DeleteInWarehouseInfoByIds) // 批量删除InWarehouseInfo
		InWarehouseInfoRouter.PUT("updateInWarehouseInfo", v1.UpdateInWarehouseInfo)    // 更新InWarehouseInfo
		InWarehouseInfoRouter.GET("findInWarehouseInfo", v1.FindInWarehouseInfo)        // 根据ID获取InWarehouseInfo
		InWarehouseInfoRouter.GET("getInWarehouseInfoList", v1.GetInWarehouseInfoList)  // 获取InWarehouseInfo列表
	}
}
